/*
    This file is part of Darwin.

    Darwin is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Foobar is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    
    Darwin uses GALib
    Copyright (c) 1995-1996 Massachusetts Institute of Technology (MIT)
    Copyright (c) 1996-2005 Matthew Wall
    All rights reserved.
    
    Darwin uses ConfigFile
    Copyright (c) 2004 Richard J. Wagner
     
    Darwin, a Genetic Algorithm to solve Timetabling problem
    Copyright (c) 2006 Christian S. Perone
*/  

#if !defined(__MAIN_H)
#define __MAIN_H

#include "general.h"

#include "options.h"
#include "timegenome.h"
#include "dbanalysis.h"
#include "configfile.h"

#include "tablemapping.h"
#include "structmapping.h"


/// Database connection object
mysqlpp::Connection g_connection(false);

/// Global Configuration
GlobalOptions g_options(CONFIG_NAME);

/// Mappings
MapProfessorDisciplina map_professordisciplina(false);
MapOferecimento map_oferecimento(false);
MapDisciplina map_disciplina(false);
MapCurso map_curso(false);
MapProfessor map_professor(false);
MapDisponibilidade map_disponibilidade(false);
MapDiaSemana map_diasemana(false);

/// Random GA Seed
const unsigned int SEED = 666;

void ConnectMySQL(void);


#endif
